{template('../public/header.html')}
<!--菜单列表-->
<div class="pad_10">
    <div class="J_tablelist table_list" data-acturi="{:U('menu/ajax_edit')}">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <th width="40"><input type="checkbox" name="checkall" class="J_checkall"></th>
                <th width="40"><span tdtype="order_by" fieldname="id">ID</span></th>
      			<th>{:L('menu_name')}</th>
                <th>m</th>
                <th>a</th>
                <th>data</th>
                <th><span tdtype="order_by" fieldname="ordid">{:L('sort_order')}</span></th>
                <th>显示</th>
                <th width="160">{:L('operations_manage')}</th>
            </tr>
            </thead>
    	   <tbody>
			{foreach e cat}
				<tr>
                <td align='center'><input type='checkbox' value='{:cat(e)("id")}' class='J_checkitem'></td>
                <td align='center'>{:cat(e)("id")}</td>
                <td>{:cat(e)("tree_spacer")}<span data-tdtype='edit' data-field='name' data-id='{:cat(e)("id")}' class='tdedit'>{:cat(e)("name")}</span></td>
                <td align='center'><span data-tdtype='edit' data-field='module_name' data-id='{:cat(e)("id")}' class='tdedit'>{$module_name}</span></td>
                <td align='center'><span data-tdtype='edit' data-field='action_name' data-id='{:cat(e)("id")}' class='tdedit'>{$action_name}</span></td>
                <td align='center'><span data-tdtype='edit' data-field='data' data-id='{:cat(e)("id")}' class='tdedit'>{:cat(e)("data")}</span></td>
                <td align='center'><span data-tdtype='edit' data-field='ordid' data-id='{:cat(e)("id")}' class='tdedit'>{:cat(e)("ordid")}</span></td>
                <td align='center'><img data-tdtype='toggle' data-id='{:cat(e)("id")}' data-field='display' data-value='{:cat(e)("display")}' src='__STATIC__/images/admin/toggle_{:ab.c.iif(cat(e)("display")=0,"disabled","enabled")}.gif' /></td>
				<td align='center'><a href='javascript:;' class='J_showdialog'
					data-uri='{:U(MODULE_NAME & "/add?pid=" & cat(e)("id") )}'
					data-title='{:L('add_submenu')}'
					data-id='add' data-width='500' data-height='350'>{:L('add_submenu')}</a> |
					<a href='javascript:;' class='J_showdialog' 
					data-uri='{:U(MODULE_NAME & "/edit?pid=" & cat(e)("id") )}' 
					data-title='{:L('edit')} - {:cat(e)("name")}' 
					data-id='edit' data-width='500' data-height='350'>{:L('edit')}</a> | 
					<a href='javascript:;' class='J_confirmurl' data-acttype='ajax' 
					data-uri='{:U(MODULE_NAME & "/delete?id=" & cat(e)("id") )}' 
					data-msg='{:sprintf(L('confirm_delete_one'),cat(e)("name"))}'>{:L('delete')}</a></td>
				</tr>
			{/foreach}
    	   </tbody>
        </table>
    </div>
    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
        <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('menu/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
        <div id="pages">{$page}</div>
    </div>
</div>
{template('../public/footer.html')}
</body>
</html>